/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.presentationlayer;

import mnstudent.businessLayer.RegulationBLL;
import mnstudent.datatranferobject.RegulationDTO;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.util.ArrayList;
import javax.swing.JOptionPane;

/**
 *
 * @author lee
 */
public class frmRegulation extends javax.swing.JPanel {

    private RegulationBLL m_RegulationBLL;
    private ArrayList<RegulationDTO> arrRegulationDTO;
    private boolean m_isUpdate = false;
    /**
     * Creates new form frmRegulation
     */
    public frmRegulation() {
        initComponents();
        initControls();
        prepare();
    }

    private void initControls()
    {
        if(!m_isUpdate)
        {
            jxBtnUpdate.setEnabled(true);
            jxBtnSave.setEnabled(false);
            jxBtnCancel.setEnabled(false);
            
            jSpCountMax.setEnabled(false);
            jSpMaxAgeStaff.setEnabled(false);
            jSpMaxAgeStudent.setEnabled(false);
            jSpMaxCredits.setEnabled(false);
            jSpMaxScores.setEnabled(false);
            jSpMaxSizeClass.setEnabled(false);
            jSpMinAgeStaff.setEnabled(false);
            jSpMinAgeStudent.setEnabled(false);
            jSpMinScores.setEnabled(false);
            jSpMinSizeClass.setEnabled(false);
            jSpPassedScores.setEnabled(false);
        }
        else
        {
            jxBtnUpdate.setEnabled(false);
            jxBtnSave.setEnabled(true);
            jxBtnCancel.setEnabled(true);
            
            jSpCountMax.setEnabled(true);
            jSpMaxAgeStaff.setEnabled(true);
            jSpMaxAgeStudent.setEnabled(true);
            jSpMaxCredits.setEnabled(true);
            jSpMaxScores.setEnabled(true);
            jSpMaxSizeClass.setEnabled(true);
            jSpMinAgeStaff.setEnabled(true);
            jSpMinAgeStudent.setEnabled(true);
            jSpMinScores.setEnabled(true);
            jSpMinSizeClass.setEnabled(true);
            jSpPassedScores.setEnabled(true);
        }
    }
    private void prepare(){

       m_RegulationBLL = new RegulationBLL();
       arrRegulationDTO = m_RegulationBLL.getAllRegulationToArray();
       //Dua du lieu len cac controls
       bindingDataToControls(arrRegulationDTO);
    }
  
    private void bindingDataToControls(ArrayList<RegulationDTO> arrList)
    {
       
        jSpMaxCredits.setValue(Integer.valueOf(arrList.get(0).getValue()));//Max so tin chi
        jSpMaxSizeClass.setValue(Integer.valueOf(arrList.get(1).getValue()));//si so toi da
        jSpMinSizeClass.setValue(Integer.valueOf(arrList.get(2).getValue()));//si so toi thieu
        jSpCountMax.setValue(Integer.valueOf(arrList.get(3).getValue()));//so lan dong hoc phi toi da
        jSpMinScores.setValue(Float.valueOf(arrList.get(4).getValue()));//diem toi thieu
        jSpMaxScores.setValue(Float.valueOf(arrList.get(5).getValue()));//diem toi da
        jSpPassedScores.setValue(Float.valueOf(arrList.get(6).getValue()));//diem dat
        jSpMinAgeStudent.setValue(Integer.valueOf(arrList.get(7).getValue()));//tuoi toi thieu sv
        jSpMaxAgeStudent.setValue(Integer.valueOf(arrList.get(8).getValue()));//tuoi toi da sinh vien
        jSpMinAgeStaff.setValue(Integer.valueOf(arrList.get(9).getValue()));//tuoi toi thieu nhan vien
        jSpMaxAgeStaff.setValue(Integer.valueOf(arrList.get(10).getValue()));//tuoi toi da sinh vien
    }
   
    private boolean isSave()
    {
        boolean m_isSave = false;
        if(m_isUpdate)
        {
            ArrayList<RegulationDTO>  temp = new ArrayList<>();
            RegulationDTO obj1 = new RegulationDTO(arrRegulationDTO.get(0).getId(), arrRegulationDTO.get(0).getLabel(), jSpMaxCredits.getValue().toString());
            temp.add(obj1);
            RegulationDTO obj2 = new RegulationDTO(arrRegulationDTO.get(1).getId(), arrRegulationDTO.get(1).getLabel(), jSpMaxSizeClass.getValue().toString());
            temp.add(obj2);
            RegulationDTO obj3 = new RegulationDTO(arrRegulationDTO.get(2).getId(), arrRegulationDTO.get(2).getLabel(), jSpMinSizeClass.getValue().toString());
            temp.add(obj3);
            RegulationDTO obj4 = new RegulationDTO(arrRegulationDTO.get(3).getId(), arrRegulationDTO.get(3).getLabel(), jSpCountMax.getValue().toString());
            temp.add(obj4);
            RegulationDTO obj5 = new RegulationDTO(arrRegulationDTO.get(4).getId(), arrRegulationDTO.get(4).getLabel(), jSpMinScores.getValue().toString());
            temp.add(obj5);
            RegulationDTO obj6 = new RegulationDTO(arrRegulationDTO.get(5).getId(), arrRegulationDTO.get(5).getLabel(), jSpMaxScores.getValue().toString());
            temp.add(obj6);
            RegulationDTO obj7 = new RegulationDTO(arrRegulationDTO.get(6).getId(), arrRegulationDTO.get(6).getLabel(), jSpPassedScores.getValue().toString());
            temp.add(obj7);
            RegulationDTO obj8 = new RegulationDTO(arrRegulationDTO.get(7).getId(), arrRegulationDTO.get(7).getLabel(), jSpMinAgeStudent.getValue().toString());
            temp.add(obj8);
            RegulationDTO obj9 = new RegulationDTO(arrRegulationDTO.get(8).getId(), arrRegulationDTO.get(8).getLabel(), jSpMaxAgeStudent.getValue().toString());
            temp.add(obj9);
             RegulationDTO obj10 = new RegulationDTO(arrRegulationDTO.get(9).getId(), arrRegulationDTO.get(9).getLabel(), jSpMinAgeStaff.getValue().toString());
            temp.add(obj10);
             RegulationDTO obj11 = new RegulationDTO(arrRegulationDTO.get(10).getId(), arrRegulationDTO.get(1).getLabel(), jSpMaxAgeStaff.getValue().toString());
            temp.add(obj11);
            int count = 0;
            for(RegulationDTO obj: temp)
            {
                if(m_RegulationBLL.updateRegulationByIdToDatabase(obj)){
                    count++;
                }
            }
            if(count == temp.size())
                m_isSave = true;
            else
                m_isSave = false;
        }
        return m_isSave;
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jxpanCenter = new org.jdesktop.swingx.JXPanel();
        jpanMainRight = new javax.swing.JPanel();
        jxpanCourseRegistration = new org.jdesktop.swingx.JXPanel();
        jXLabel6 = new org.jdesktop.swingx.JXLabel();
        jXLabel10 = new org.jdesktop.swingx.JXLabel();
        jSpMinSizeClass = new javax.swing.JSpinner();
        jSpCountMax = new javax.swing.JSpinner();
        jXLabel11 = new org.jdesktop.swingx.JXLabel();
        jXLabel12 = new org.jdesktop.swingx.JXLabel();
        jSpMaxSizeClass = new javax.swing.JSpinner();
        jSpMaxCredits = new javax.swing.JSpinner();
        jxpanOld = new org.jdesktop.swingx.JXPanel();
        jXLabel4 = new org.jdesktop.swingx.JXLabel();
        jSpMinAgeStudent = new javax.swing.JSpinner();
        jSpMaxAgeStudent = new javax.swing.JSpinner();
        jXLabel7 = new org.jdesktop.swingx.JXLabel();
        jSpMinAgeStaff = new javax.swing.JSpinner();
        jXLabel8 = new org.jdesktop.swingx.JXLabel();
        jSpMaxAgeStaff = new javax.swing.JSpinner();
        jXLabel9 = new org.jdesktop.swingx.JXLabel();
        jxpanScores = new org.jdesktop.swingx.JXPanel();
        jXLabel1 = new org.jdesktop.swingx.JXLabel();
        jSpMinScores = new javax.swing.JSpinner();
        jSpMaxScores = new javax.swing.JSpinner();
        jXLabel2 = new org.jdesktop.swingx.JXLabel();
        jSpPassedScores = new javax.swing.JSpinner();
        jXLabel3 = new org.jdesktop.swingx.JXLabel();
        jpanMainLeft = new javax.swing.JPanel();
        jxpanNavibarhead = new org.jdesktop.swingx.JXPanel();
        jxbtnResizeNavibar = new org.jdesktop.swingx.JXButton();
        jxpanListRegulations = new org.jdesktop.swingx.JXPanel();
        jxLblCourseRegistration = new org.jdesktop.swingx.JXLabel();
        jxLblOld = new org.jdesktop.swingx.JXLabel();
        jxLblScores = new org.jdesktop.swingx.JXLabel();
        jXPanel1 = new org.jdesktop.swingx.JXPanel();
        jxBtnUpdate = new org.jdesktop.swingx.JXButton();
        jxBtnSave = new org.jdesktop.swingx.JXButton();
        jxBtnCancel = new org.jdesktop.swingx.JXButton();
        jxpanHeader = new org.jdesktop.swingx.JXPanel();
        jxpanTitleHeader = new org.jdesktop.swingx.JXPanel();
        jXLabel5 = new org.jdesktop.swingx.JXLabel();

        setLayout(new java.awt.BorderLayout());

        jxpanCenter.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jxpanCenter.setLayout(new java.awt.BorderLayout());

        jpanMainRight.setLayout(new java.awt.CardLayout());

        jxpanCourseRegistration.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Thông tin quy định về đăng ký môn học", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP));

        jXLabel6.setText("Số tín chỉ tối đa được đăng ký trong một học kỳ");

        jXLabel10.setText("Sĩ số  tối đa của một lớp học");

        jSpMinSizeClass.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        jSpCountMax.setModel(new javax.swing.SpinnerNumberModel(0, 0, 10, 1));

        jXLabel11.setText("Sĩ số tối thiểu của một lớp học");

        jXLabel12.setText("Số lần đóng tiền học phí tối đa");

        jSpMaxSizeClass.setModel(new javax.swing.SpinnerNumberModel(0, 0, 1000, 1));

        jSpMaxCredits.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        javax.swing.GroupLayout jxpanCourseRegistrationLayout = new javax.swing.GroupLayout(jxpanCourseRegistration);
        jxpanCourseRegistration.setLayout(jxpanCourseRegistrationLayout);
        jxpanCourseRegistrationLayout.setHorizontalGroup(
            jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                .addGap(145, 145, 145)
                .addGroup(jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                        .addComponent(jXLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jSpCountMax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                        .addComponent(jXLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jSpMinSizeClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                        .addComponent(jXLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jSpMaxSizeClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                        .addComponent(jXLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(167, 167, 167)
                        .addComponent(jSpMaxCredits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(54, Short.MAX_VALUE))
        );
        jxpanCourseRegistrationLayout.setVerticalGroup(
            jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanCourseRegistrationLayout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addGroup(jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxCredits, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(16, 16, 16)
                .addGroup(jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxSizeClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMinSizeClass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanCourseRegistrationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jXLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpCountMax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(92, Short.MAX_VALUE))
        );

        jpanMainRight.add(jxpanCourseRegistration, "jxpanCourseRegistration");

        jxpanOld.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Thông tin quy định về độ tuổi", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP));

        jXLabel4.setText("Tuổi tối thiểu của sinh viên");

        jSpMinAgeStudent.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        jSpMaxAgeStudent.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        jXLabel7.setText("Tuối tối đa của sinh viên");

        jSpMinAgeStaff.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        jXLabel8.setText("Tuối tối thiểu của nhân viên");

        jSpMaxAgeStaff.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));

        jXLabel9.setText("Tuổi tối đa của nhân viên");

        javax.swing.GroupLayout jxpanOldLayout = new javax.swing.GroupLayout(jxpanOld);
        jxpanOld.setLayout(jxpanOldLayout);
        jxpanOldLayout.setHorizontalGroup(
            jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanOldLayout.createSequentialGroup()
                .addGap(145, 145, 145)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jXLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jXLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jXLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxpanOldLayout.createSequentialGroup()
                        .addComponent(jXLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(106, 106, 106)))
                .addGap(65, 65, 65)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jSpMinAgeStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxAgeStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMinAgeStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxAgeStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(148, Short.MAX_VALUE))
        );
        jxpanOldLayout.setVerticalGroup(
            jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanOldLayout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMinAgeStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxAgeStudent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMinAgeStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanOldLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxAgeStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(90, Short.MAX_VALUE))
        );

        jpanMainRight.add(jxpanOld, "jxpanOld");

        jxpanScores.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Thông tin quy định về điểm của sinh viên", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP));

        jXLabel1.setText("Điểm số tối thiểu của một môn học");

        jSpMinScores.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(0.0f), Float.valueOf(0.0f), Float.valueOf(100.0f), Float.valueOf(0.1f)));
        jSpMinScores.setToolTipText("");

        jSpMaxScores.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(0.0f), Float.valueOf(0.0f), Float.valueOf(100.0f), Float.valueOf(0.1f)));

        jXLabel2.setText("Điểm số tối đa của một môn học");

        jSpPassedScores.setModel(new javax.swing.SpinnerNumberModel(Float.valueOf(0.0f), Float.valueOf(0.0f), Float.valueOf(100.0f), Float.valueOf(0.01f)));

        jXLabel3.setText("Điểm số đạt của một môn học");

        javax.swing.GroupLayout jxpanScoresLayout = new javax.swing.GroupLayout(jxpanScores);
        jxpanScores.setLayout(jxpanScoresLayout);
        jxpanScoresLayout.setHorizontalGroup(
            jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanScoresLayout.createSequentialGroup()
                .addGap(145, 145, 145)
                .addGroup(jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jXLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jXLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jXLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(193, 193, 193)
                .addGroup(jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jSpMinScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpPassedScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(89, Short.MAX_VALUE))
        );
        jxpanScoresLayout.setVerticalGroup(
            jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanScoresLayout.createSequentialGroup()
                .addGap(60, 60, 60)
                .addGroup(jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMinScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpMaxScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jxpanScoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jXLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSpPassedScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(128, Short.MAX_VALUE))
        );

        jpanMainRight.add(jxpanScores, "jxpanScores");

        jxpanCenter.add(jpanMainRight, java.awt.BorderLayout.CENTER);

        jpanMainLeft.setPreferredSize(new java.awt.Dimension(250, 50));
        jpanMainLeft.setLayout(new java.awt.BorderLayout());

        org.jdesktop.swingx.border.DropShadowBorder dropShadowBorder1 = new org.jdesktop.swingx.border.DropShadowBorder();
        dropShadowBorder1.setShadowColor(new java.awt.Color(156, 110, 236));
        dropShadowBorder1.setShadowSize(4);
        dropShadowBorder1.setShowLeftShadow(true);
        dropShadowBorder1.setShowTopShadow(true);
        jxpanNavibarhead.setBorder(dropShadowBorder1);

        org.jdesktop.swingx.border.IconBorder iconBorder1 = new org.jdesktop.swingx.border.IconBorder();
        iconBorder1.setPadding(0);
        jxbtnResizeNavibar.setBorder(iconBorder1);
        jxbtnResizeNavibar.setText("<<");
        jxbtnResizeNavibar.setToolTipText("Ẩn đi");
        jxbtnResizeNavibar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        jxbtnResizeNavibar.setMaximumSize(new java.awt.Dimension(27, 15));
        jxbtnResizeNavibar.setMinimumSize(new java.awt.Dimension(27, 15));
        jxbtnResizeNavibar.setPreferredSize(new java.awt.Dimension(27, 15));
        jxbtnResizeNavibar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jxbtnResizeNavibarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jxpanNavibarheadLayout = new javax.swing.GroupLayout(jxpanNavibarhead);
        jxpanNavibarhead.setLayout(jxpanNavibarheadLayout);
        jxpanNavibarheadLayout.setHorizontalGroup(
            jxpanNavibarheadLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jxpanNavibarheadLayout.createSequentialGroup()
                .addGap(0, 215, Short.MAX_VALUE)
                .addComponent(jxbtnResizeNavibar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jxpanNavibarheadLayout.setVerticalGroup(
            jxpanNavibarheadLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jxbtnResizeNavibar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jpanMainLeft.add(jxpanNavibarhead, java.awt.BorderLayout.PAGE_START);

        jxpanListRegulations.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Quy định", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.TOP));

        jxLblCourseRegistration.setText("Quy định về đăng ký môn học");
        jxLblCourseRegistration.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxLblCourseRegistrationMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jxLblCourseRegistrationMouseExited(evt);
            }
        });
        jxLblCourseRegistration.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jxLblCourseRegistrationMouseMoved(evt);
            }
        });

        jxLblOld.setText("Quy định về độ tuổi");
        jxLblOld.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxLblOldMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jxLblOldMouseExited(evt);
            }
        });
        jxLblOld.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jxLblOldMouseMoved(evt);
            }
        });

        jxLblScores.setText("Quy định về điểm số");
        jxLblScores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jxLblScoresMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jxLblScoresMouseExited(evt);
            }
        });
        jxLblScores.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jxLblScoresMouseMoved(evt);
            }
        });

        javax.swing.GroupLayout jxpanListRegulationsLayout = new javax.swing.GroupLayout(jxpanListRegulations);
        jxpanListRegulations.setLayout(jxpanListRegulationsLayout);
        jxpanListRegulationsLayout.setHorizontalGroup(
            jxpanListRegulationsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanListRegulationsLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addGroup(jxpanListRegulationsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jxLblScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jxLblOld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jxLblCourseRegistration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(66, Short.MAX_VALUE))
        );
        jxpanListRegulationsLayout.setVerticalGroup(
            jxpanListRegulationsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jxpanListRegulationsLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(jxLblCourseRegistration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jxLblOld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jxLblScores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(149, Short.MAX_VALUE))
        );

        jpanMainLeft.add(jxpanListRegulations, java.awt.BorderLayout.CENTER);

        jxpanCenter.add(jpanMainLeft, java.awt.BorderLayout.WEST);

        jxBtnUpdate.setText("Sửa đổi");
        jxBtnUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jxBtnUpdateActionPerformed(evt);
            }
        });

        jxBtnSave.setText("Lưu xuống");
        jxBtnSave.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jxBtnSaveActionPerformed(evt);
            }
        });

        jxBtnCancel.setText("Hủy thao tác");
        jxBtnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jxBtnCancelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jXPanel1Layout = new javax.swing.GroupLayout(jXPanel1);
        jXPanel1.setLayout(jXPanel1Layout);
        jXPanel1Layout.setHorizontalGroup(
            jXPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jXPanel1Layout.createSequentialGroup()
                .addContainerGap(458, Short.MAX_VALUE)
                .addComponent(jxBtnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65)
                .addComponent(jxBtnSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65)
                .addComponent(jxBtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(65, 65, 65))
        );
        jXPanel1Layout.setVerticalGroup(
            jXPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jXPanel1Layout.createSequentialGroup()
                .addContainerGap(20, Short.MAX_VALUE)
                .addGroup(jXPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jxBtnUpdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jxBtnSave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jxBtnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20))
        );

        jxpanCenter.add(jXPanel1, java.awt.BorderLayout.SOUTH);

        add(jxpanCenter, java.awt.BorderLayout.CENTER);

        jxpanHeader.setLayout(new java.awt.BorderLayout());

        jxpanTitleHeader.setBorder(new org.jdesktop.swingx.border.DropShadowBorder());

        jXLabel5.setForeground(new java.awt.Color(0, 102, 255));
        jXLabel5.setText("QUY ĐỊNH");
        jXLabel5.setFont(new java.awt.Font("Times New Roman", 1, 24)); // NOI18N
        jxpanTitleHeader.add(jXLabel5);

        jxpanHeader.add(jxpanTitleHeader, java.awt.BorderLayout.PAGE_START);

        add(jxpanHeader, java.awt.BorderLayout.NORTH);
    }// </editor-fold>//GEN-END:initComponents

    private void jxbtnResizeNavibarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jxbtnResizeNavibarActionPerformed
        if(jxbtnResizeNavibar.getText().equals("<<"))
        {
            jpanMainLeft.setPreferredSize(new Dimension(40, 40));
            jxbtnResizeNavibar.setText(">>");
            jxbtnResizeNavibar.setToolTipText("Hiển thị");
            //jxtreenavibar.setVisible(false);
            jpanMainLeft.revalidate();
        }
        else
        {
            jpanMainLeft.setPreferredSize(new Dimension(250,200));
            jxbtnResizeNavibar.setToolTipText("Ẩn đi");
            //jxtreenavibar.setVisible(true);
            jxbtnResizeNavibar.setText("<<");
            jpanMainLeft.revalidate();
        }

    }//GEN-LAST:event_jxbtnResizeNavibarActionPerformed
    Font font = new Font("Arial",Font.BOLD | Font.ITALIC,14);
    private void jxLblCourseRegistrationMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblCourseRegistrationMouseExited
        jxLblCourseRegistration.setFont(null);
        jxLblCourseRegistration.setForeground(null);
    }//GEN-LAST:event_jxLblCourseRegistrationMouseExited

    private void jxLblCourseRegistrationMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblCourseRegistrationMouseMoved
        jxLblCourseRegistration.setFont(font);
        jxLblCourseRegistration.setForeground(Color.RED);
    }//GEN-LAST:event_jxLblCourseRegistrationMouseMoved

    private void jxLblOldMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblOldMouseMoved
        jxLblOld.setFont(font);
        jxLblOld.setForeground(Color.RED);
    }//GEN-LAST:event_jxLblOldMouseMoved

    private void jxLblOldMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblOldMouseExited
        jxLblOld.setFont(null);
        jxLblOld.setForeground(null);
    }//GEN-LAST:event_jxLblOldMouseExited

    private void jxLblScoresMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblScoresMouseExited
        jxLblScores.setFont(null);
        jxLblScores.setForeground(null);
    }//GEN-LAST:event_jxLblScoresMouseExited

    private void jxLblScoresMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblScoresMouseMoved
        jxLblScores.setFont(font);
        jxLblScores.setForeground(Color.RED);
    }//GEN-LAST:event_jxLblScoresMouseMoved

    private void jxLblCourseRegistrationMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblCourseRegistrationMouseClicked
        CardLayout cardLayout = (CardLayout)jpanMainRight.getLayout();
        cardLayout.show(jpanMainRight, "jxpanCourseRegistration");
//        jxLblCourseRegistration.setBackground(Color.DARK_GRAY);
//        jxLblOld.setBackground(this.getBackground());
//        jxLblScores.setBackground(this.getBackground());
    }//GEN-LAST:event_jxLblCourseRegistrationMouseClicked

    private void jxLblOldMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblOldMouseClicked
        CardLayout cardLayout = (CardLayout)jpanMainRight.getLayout();
        cardLayout.show(jpanMainRight, "jxpanOld");
//        jxLblOld.setBackground(Color.DARK_GRAY);
//        jxLblCourseRegistration.setBackground(this.getBackground());
//        jxLblScores.setBackground(this.getBackground());
    }//GEN-LAST:event_jxLblOldMouseClicked

    private void jxLblScoresMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jxLblScoresMouseClicked
       CardLayout cardLayout = (CardLayout)jpanMainRight.getLayout();
       cardLayout.show(jpanMainRight, "jxpanScores");
//       jxLblScores.setBackground(Color.DARK_GRAY);
//       jxLblOld.setBackground(this.getBackground());
//       jxLblCourseRegistration.setBackground(this.getBackground());
    }//GEN-LAST:event_jxLblScoresMouseClicked

    private void jxBtnUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jxBtnUpdateActionPerformed
        this.m_isUpdate = true;
        initControls();
    }//GEN-LAST:event_jxBtnUpdateActionPerformed

    private void jxBtnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jxBtnCancelActionPerformed
        this.m_isUpdate = false;
        initControls();
        //Refresh lai data
        bindingDataToControls(m_RegulationBLL.getAllRegulationToArray());
    }//GEN-LAST:event_jxBtnCancelActionPerformed

    private void jxBtnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jxBtnSaveActionPerformed
        
        //Thuc hien luu
        if(isSave())
        {
            this.m_isUpdate = false;
            initControls();
            JOptionPane.showOptionDialog(null, 
                    "Lưu xuống thành công!", 
                    "Thông báo", 
                    JOptionPane.YES_OPTION,
                    JOptionPane.QUESTION_MESSAGE,
                    null,
                    null,
                    null);
        }
        else
        {
            JOptionPane.showMessageDialog(null, "Lưu xuống thất bại. Vui lòng kiểm tra lại!", "Lỗi", JOptionPane.YES_OPTION);
        }
    }//GEN-LAST:event_jxBtnSaveActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JSpinner jSpCountMax;
    private javax.swing.JSpinner jSpMaxAgeStaff;
    private javax.swing.JSpinner jSpMaxAgeStudent;
    private javax.swing.JSpinner jSpMaxCredits;
    private javax.swing.JSpinner jSpMaxScores;
    private javax.swing.JSpinner jSpMaxSizeClass;
    private javax.swing.JSpinner jSpMinAgeStaff;
    private javax.swing.JSpinner jSpMinAgeStudent;
    private javax.swing.JSpinner jSpMinScores;
    private javax.swing.JSpinner jSpMinSizeClass;
    private javax.swing.JSpinner jSpPassedScores;
    private org.jdesktop.swingx.JXLabel jXLabel1;
    private org.jdesktop.swingx.JXLabel jXLabel10;
    private org.jdesktop.swingx.JXLabel jXLabel11;
    private org.jdesktop.swingx.JXLabel jXLabel12;
    private org.jdesktop.swingx.JXLabel jXLabel2;
    private org.jdesktop.swingx.JXLabel jXLabel3;
    private org.jdesktop.swingx.JXLabel jXLabel4;
    private org.jdesktop.swingx.JXLabel jXLabel5;
    private org.jdesktop.swingx.JXLabel jXLabel6;
    private org.jdesktop.swingx.JXLabel jXLabel7;
    private org.jdesktop.swingx.JXLabel jXLabel8;
    private org.jdesktop.swingx.JXLabel jXLabel9;
    private org.jdesktop.swingx.JXPanel jXPanel1;
    private javax.swing.JPanel jpanMainLeft;
    private javax.swing.JPanel jpanMainRight;
    private org.jdesktop.swingx.JXButton jxBtnCancel;
    private org.jdesktop.swingx.JXButton jxBtnSave;
    private org.jdesktop.swingx.JXButton jxBtnUpdate;
    private org.jdesktop.swingx.JXLabel jxLblCourseRegistration;
    private org.jdesktop.swingx.JXLabel jxLblOld;
    private org.jdesktop.swingx.JXLabel jxLblScores;
    private org.jdesktop.swingx.JXButton jxbtnResizeNavibar;
    private org.jdesktop.swingx.JXPanel jxpanCenter;
    private org.jdesktop.swingx.JXPanel jxpanCourseRegistration;
    private org.jdesktop.swingx.JXPanel jxpanHeader;
    private org.jdesktop.swingx.JXPanel jxpanListRegulations;
    private org.jdesktop.swingx.JXPanel jxpanNavibarhead;
    private org.jdesktop.swingx.JXPanel jxpanOld;
    private org.jdesktop.swingx.JXPanel jxpanScores;
    private org.jdesktop.swingx.JXPanel jxpanTitleHeader;
    // End of variables declaration//GEN-END:variables
}
